// axios通用操作
import axios from "axios";
let baseUrl = "http://localhost:9099";
axios.defaults.baseURL='http://localhost:9099'
axios.defaults.timeout = 60000

const get = (url,data)=> {//返回值其实就是response对象
    return axios.get(url,{
        params:data
    })
}

const post =(url,data)=>{
    return axios.post(url,data)
}
export {get,post,baseUrl}